<?php
namespace App\Models\PrizeRecord;

use App\Contracts\Repositories\PrizeRecordRepository;

class PrizeRecordService
{
    private $prizeRecordRepostory;

    public function __construct(PrizeRecordRepository $prizeRecordRepository)
    {
        $this->prizeRecordRepostory = $prizeRecordRepository;
    }

    public function create($prizeRecords)
    {
        return $this->prizeRecordRepostory->create($prizeRecords);
    }

    /**
     * @param $prizeRecords
     * @return mixed
     */
    public function modify($prizeRecords)
    {
        return $this->prizeRecordRepostory->modify($prizeRecords);
    }

    public function getByConditions($conditions)
    {
        return $this->prizeRecordRepostory->getByConditions($conditions);
    }

    public function getLastOne($conditions)
    {
        return $this->prizeRecordRepostory->getLastOne($conditions);
    }

    public function delete($conditions)
    {
        return $this->prizeRecordRepostory->deleteByConditions($conditions);
    }
    public function findListByConditions($conditions)
    {
        return $this->prizeRecordRepostory->findListByConditions($conditions);
    }
    public function update($params=[],$conditions){
        return $this->prizeRecordRepostory->update($params,$conditions);
    }
}
